import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BdOperationProcessListComponent } from './basic-data/operation-process/list/list.component';
import { TallyCheckIndexComponent } from './tally-check/check/index/index.component';
import { TallyManageUnlockIndexComponent } from './tally-manage/unlock/index/index.component';
import { ExportShipStatIndexComponent } from './ship-stat/export/index/index.component';
import { ImportShipStatIndexComponent } from './ship-stat/import/index/index.component';
import { TallySearchExportIndexComponent } from './tally-search-export/index/index.component';
import { CargoStorageIndexComponent } from './statistics/cargo-storage/index/index.component';
import { TransferStatListComponent } from './statistics/transfer/list/list.component';
import { RetreatStatListComponent } from './statistics/retreat/list/list.component';

const routes: Routes = [
	{
		path: 'bd/operation-process',
		component: BdOperationProcessListComponent,
	},
	{
		path: 'check/check-index',
		component: TallyCheckIndexComponent,
	},
	{
		path: 'unlock/unlock-index',
		component: TallyManageUnlockIndexComponent,
	},
	{
		path: 'ship-stat/export-ship-stat-index',
		component: ExportShipStatIndexComponent,
	},
	{
		path: 'ship-stat/import-ship-stat-index',
		component: ImportShipStatIndexComponent,
	},
	{
		path: 'tally-search-export/company-index/:company',
		component: TallySearchExportIndexComponent,
	},
	{
		path: 'tally-search-export/index',
		component: TallySearchExportIndexComponent,
	},
	{
		path: 'statistics/cargo-storage/index',
		component: CargoStorageIndexComponent,
	},
	{
		path: 'statistics/cargo-storage/out-position-index/:areaId',
		component: CargoStorageIndexComponent,
	},
	{
		path: 'statistics/retreat/list',
		component: RetreatStatListComponent,
	},
	{
		path: 'statistics/transfer/list',
		component: TransferStatListComponent,
	}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class HandleTallyRoutingModule { }
